/*
* jiyan1
*/
package com.jiyan.scene.api;

import com.jiyan.scene.entity.Scene;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.ArrayList;
import java.util.List;

/**
 * 场景 api请求熔断器 熔断实现
 * @author jiyan
 */
@Component
public class SceneFeignApiImpl implements SceneFeignApi {
    /**
     * 查询Scene一个详情信息
     * @param id 
     * @param code 编码
     * @return Scene
     */
    @Override
    public  Scene load(@RequestParam("id") java.lang.Long id,@RequestParam("code") java.lang.String code){
        return new Scene();
    }


    /**
     * 根据条件id查询Scene一个详情信息
     *
     * @param id 
     * @return Scene
     */
    @Override
    public   Scene loadById(@RequestParam("id") java.lang.Long id){
        return new Scene();
    }

    /**
     * 根据条件code查询Scene一个详情信息
     *
     * @param code 编码
     * @return Scene
     */
    @Override
    public   Scene loadByCode(@RequestParam("code") java.lang.String code){
        return new Scene();
    }

    /**
     * 查询Scene信息集合
     *
     * @return 分页对象
     */
    @Override
    public    List<Scene> list(@RequestBody Scene scene,int curPage,int pageSize){
        return new ArrayList();
    }

    /**
     * 查询Scene信息集合
     *
     * @return 分页对象
     */
    @Override
    public   List<Scene> listByPk(java.lang.Long id,java.lang.String code,int curPage,int pageSize){
        return new ArrayList();
    }

    @Override
    public Integer count(@RequestParam("id") java.lang.Long id,@RequestParam("code") java.lang.String code){
         return 0;
    }

    @Override
    public Integer count(@RequestBody Scene scene) {
        return 0;
    }

    /**
     * 创建Scene
     *
     * @return Scene
     */
    @Override
    public   Scene build(@RequestBody Scene scene){
        return new Scene();
    }

    /**
     * 修改Scene
     *
     * @return Scene
     */
    @Override
    public   Scene modify(@RequestBody Scene scene){
        return new Scene();
    }

    /**
     * 删除Scene
     *
     */
    @Override
    public  void delete(@RequestParam("id") java.lang.Long id,@RequestParam("code") java.lang.String code){
        return;
    }
}
